package com.sauro.util;

public enum BaseCodeUtil implements AbstractCodeUtil {
    COMMON_ERROR("%s"),
    SUCCESS("成功"),
    HTTP_REQUEST_NO_TRUE("http请求异常: %s"),
    HTTP_REQUEST_NULL("http请求异常: null"),
    PARAMETER_NULL("%s 参数为空"),
    PARAMETER_ERROR("参数错误"),
    THIS_CATEGORY_NO_RANK("该类目id下没有榜单");


    private String msg;

    private BaseCodeUtil(String msg) {
        this.msg = msg;
    }

    @Override
    public String getMsg(Object... args) {
        return String.format(this.msg, args);
    }

}
